package com.taobao.action;

import java.util.List;

import com.taobao.pojo.Config;
import com.taobao.pojo.Receive;
import com.taobao.pojo.Task;
import com.taobao.server.HistoryServer;
import com.taobao.ui.widget.CommonWidget;
import com.taobao.ui.widget.ReceiveTaskWidget;

public class HistoryAction extends CommonAction {

	private HistoryServer historyServer;

	@Override
	public void doAction(Object uiObject) {
		List<Task> tasks = historyServer.getReceiveHistory();
		Receive receive = new Receive();
		receive.setReceiveTasks(tasks);
		CommonWidget commonWidget = Config.uiContext.get(ReceiveTaskWidget.ID);
		commonWidget.fillWidget(receive);
	}

}
